import random
import math
from typing import List


class Solution:

    def __init__(self, radius: float, x_center: float, y_center: float):
        self.r = radius
        self.x = x_center
        self.y = y_center

    def randPoint(self) -> List[float]:
        r1 = 0.0
        if(self.r == None or self.x == None or self.x == None):
            return []
        r1 = (random.random()**0.5)*self.r
        theta = 2*random.random()*math.pi
        print(theta)
        return [self.x+r1*math.cos(theta), self.y+r1*math.sin(theta)]


if __name__ == "__main__":
    s = Solution(1.0, 1.0, 1.0)
    print(s.randPoint())
